<!-- 会员统计 -->
<?php $id="form_".uniqid();?>
<table id="<?php echo $id;?>"></table>
<script>
    $("#<?php echo $id;?>").DataSource({url:'useranalyse/get_member_statistics_list',
        fields:[
            [
                {field:'t1',title:'姓名',align:'center',width:100,sortable:true},
                {field:'t2',title:'会员账号',align:'center',width:100,sortable:true},
                {field:'t3',title:'注册时间',align:'center',width:200,sortable:true},
                {field:'t4',title:'最后登录/IP', align:'center', width:260,  sortable:true},
                {field:'t5',title:'登录次数',align:'center',width:100,sortable:true},
                {field:'t6',title:'存款次数',align:'center',width:100,sortable:true},
                {field:'t7',title:'存款总额',align:'center',width:100,sortable:true},
                {field:'t8',title:'最大存款', align:'center', width:100,  sortable:true},
                {field:'t9',title:'提款次数',align:'center',width:100,sortable:true},
                {field:'t10',title:'提款总额',align:'center',width:100,sortable:true},
                {field:'t11',title:'最大提款',align:'center',width:100,sortable:true},
                {field:'t12',title:'盈利', align:'center', width:100,  sortable:true}
             ]

       ], tools:[
            {instant:false},
            <?php if(in_array('ADD',$auth)){?>
            {text:"新增层级",iconCls:"icon-add",handler:function(){
                $('#<?php echo $id?>').DataSource('add',{title:'新增层级',get:'level/edituser?>',full:true});
            }},
            <?php }?>
            {type:'combobox',text:'层级',width:40,name:'page',value:'', items:'<option value="">全部</option><option value="1">L0001（未分层）</option><option value="2">L0002（11111）</option><option value="3">L0003（212221）</option><option value="4">L0004（11111）</option>'},
			{type:'textbox', text:'账号', width:100,name:'member_account'},
			{type:'combobox',text:'页数',width:40,name:'page',value:'', items:'<option value="">0</option><option value="1">1</option>'},
			{text:"查询", iconCls:"icon-search", handler:function(){
				$('#<?php echo $id?>').DataSource('search');
			}},
		'-'
        ],
        checkbox:false,
        edit:true,
        footer:true,
        success:function(){
            $('#<?php echo $id?>').pagination({layout:['links','last'],showRefresh:false});
        }
    });

</script>